package cn.com.greatwall.common.balance.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.context.annotation.Import;

import cn.com.greatwall.common.constant.ConfigConstants;

/**
 * @Author herw
 * @Time 2022-06-19 20:23:19
 * @Version 1.0
 * @Description: TODO(用一句话描述该文件做什么)
 */
@LoadBalancerClients(defaultConfiguration = VersionLoadBalancerConfig.class)
@ConditionalOnProperty(prefix = ConfigConstants.CONFIG_LOADBALANCE_ISOLATION, name = "enabled", havingValue = "true", matchIfMissing = false)
@Import({VersionRegisterBeanPostProcessor.class})
public class VersionIsolationAutoConfig {

}
